﻿using MapMaker.Engine.Core;
using MapMaker.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MapMaker
{
    public partial class Loading : Form
    {
        private Converter DataConverter { get; set; }
        public Loading()
        {
            InitializeComponent();
        }

        private void btnImport_Click(object sender, EventArgs e)
        {
            DateTime t = DateTime.Now;

            DataConverter = new Converter(txtPath.Text);
            DataConverter.Import();

            Console.Write(DateTime.Now.Subtract(t).TotalSeconds);
            new Editor(DataConverter).Show();
            this.Close();
        }
    }
}
